<div class="cat-dm-r">
        <h1 class="dmsp-title f-w100 m-10"><?php echo $parentcatename;?></h1>
        <div class="f-w100 m-10 news sp-new">
            <div id="dm-sp">
                <ul class="tabs-nav">
                    <li class="tabs-l"><a href="#product-new-update"><span>Mới cập nhật</span></a></li>
                    <li><a href="#product-min-price"><span>Rẻ nhất</span></a></li>
                </ul>

                <div id="product-new-update" class="news-c">
                    <div class="f-w100 sp-new-title"><?php echo $catename;?></div>
                    <div class="sp-new-list f-w100">
                        <ul class="sp-list">
                        	<?php 
								$top=0;
								foreach($product as $row){
									if($top<25)
									{
										$top=$top+1;
							?>
                            <li>
							    <a href="<?php echo $this->config->item('base_url').'/index.php/sanpham/index/'.$row->productid.'/'.$row->cateid; ?>"><img src="<?php echo $this->config->item('base_url').$row->imgpath; ?>?size=100x100" width="100" height="100" align="top" title="<?php echo $row->productname; ?>" class="sp-list-img" alt="<?php echo $row->productname; ?>" /></a>
							    <div><a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>" class="sp-list-a"><?php echo $row->productname; ?></a></div>
							    <span class="sp-list-price"><?php echo $row->price.' '.$row->unit;?></span>
							</li>           
							<?php
									}
								}
							?>   
    					</ul>
                    </div>
                    <div class="f-w100 sp-new-b">
                        <div class="fll sp-news-link"><a href="<?php echo $this->config->item('base_url'); ?>/index.php/help">Làm thế nào để sản phẩm của tôi xuất hiện tại đây ?</a></div>
                        <div class="flr"><a href="<?php echo $this->config->item('base_url').'/index.php/cate/viewall/'.$cateid.'/0';?>" class="xem-all txt-blue" style="padding-right:10px;">Xem tất cả sản phẩm</a></div>
                    </div>
                </div>
                <!--END moi cap nhat-->
                <div id="product-min-price" class="news-c">
                    <div class="f-w100 sp-new-title"><?php echo $catename;?></div>
                    <div class="sp-new-list f-w100">
                        <ul class="sp-list">
                            <?php 
								$top=0;
								foreach($producthiden as $row){
									if($top<25)
									{
										$top=$top+1;
							?>
                            <li>
							    <a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>"><img src="<?php echo $this->config->item('base_url').$row->imgpath; ?>?size=100x100" width="100" height="100" align="top" title="<?php echo $row->productname; ?>" class="sp-list-img" alt="<?php echo $row->productname; ?>" /></a>
							    <div><a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>" class="sp-list-a"><?php echo $row->productname; ?></a></div>
							    <span class="sp-list-price"><?php echo $row->price.' '.$row->unit;?></span>
							</li>          
							<?php
									}
								}
							?>   
						</ul>
                    </div>
                    <div class="f-w100 sp-new-b">
                        <div class="fll sp-news-link">
                            <a href="<?php echo $this->config->item('base_url'); ?>/index.php/help" target="_blank">Làm thế nào để sản phẩm của tôi xuất hiện tại đây ?</a></div>
                        <div class="flr"><a href="<?php echo $this->config->item('base_url'); ?>/index.php/cate/viewall/<?php echo $cateid?>/1" class="xem-all txt-blue" style="padding-right:10px;">Xem tất cả sản phẩm</a></div>
                    </div>
                </div>
            </div>
        </div>
        <!--END moi cap nhat-->
        <div class="f-w100 m-10">

        </div>
        <!--END ads-->
        <div class="f-w100 m-10 news sp-new sp-uachuong">
            <h3 class="dm-r-title">SẢN PHẨM ĐƯỢC ƯA CHUỘNG NHẤT</h3>
            <div class="news-c">
                <div class="f-w100 sp-new-title"><?php echo $catename;?> được ưa chuộng nhất</div>
                <div class="sp-new-list f-w100">
                    <ul class="sp-list">
							<?php 
								$top=0;
								foreach($productview as $row){
									if($top<25)
									{
										$top=$top + 1;
							?>
                            <li>
							    <a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>"><img src="<?php echo $this->config->item('base_url').$row->imgpath; ?>?size=100x100" width="100" height="100" align="top" title="<?php echo $row->productname; ?>" class="sp-list-img" alt="<?php echo $row->productname; ?>" /></a>
							    <div><a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>" class="sp-list-a"><?php echo $row->productname; ?></a></div>
							    <span class="sp-list-price"><?php echo $row->price.' '.$row->unit;?></span>
							</li>       
							<?php
									}
								}
							?>                  
					</ul>
                </div>
                <div class="f-w100 sp-new-b">
                    <div class="fll sp-news-link"><a href="<?php echo $this->config->item('base_url'); ?>/index.php/" target="_blank">Các sản phẩm được người tiêu dùng quan tâm và tin dùng.</a></div>
                    <div class="flr"><a href="<?php echo $this->config->item('base_url'); ?>/index.php/cate/index/<?php echo $parentcateid?>/2" class="xem-all txt-blue" style="padding-right:10px;">Xem tất cả sản phẩm</a></div>
                </div>
            </div>
        </div>
        <!--END sp dc ua chuong-->
        
        <div class="f-w100 m-15 dmsp-bottom">
            <h3><?php echo $catename;?><span></span></h3>
            <strong>Các sản phẩm có thể  bạn quan tâm: </strong>
            	<?php foreach($productview as $row){?>
                    <a href="<?php echo $this->config->item('base_url'); ?>/index.php/sanpham/index/<?php echo $row->productid.'/'.$row->cateid; ?>"><?php echo $row->productname; ?></a>,&nbsp;
                <?php }?>
           </div>
        <!--END dmsp-bottom-->
    </div>
    <!--END danh muc right-->